<div>
	<hr>
	<ul class="breadcrumb">
		<li>
			<a href="<?php echo Yii::app()->createUrl('site/index'); ?>">Trang chủ</a> <span class="divider">/</span>
		</li>
		<li>
			<a href="#">Sự kiện</a>
		</li>
	</ul>
	<hr>
</div>
<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header" data-original-title>
			<h2><i class="icon-user"></i><span class="break"></span>Quản lý sự kiện</h2>
			<div class="box-icon">
				<a href="#" class="btn-setting"><i class="icon-wrench"></i></a>
				<a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
				<a href="#" class="btn-close"><i class="icon-remove"></i></a>
			</div>
		</div>
		<div class="box-content">
			<table class="table table-striped table-bordered bootstrap-datatable datatable">
				<thead>
					<tr>
						<th>Tên sự kiện</th>
						<th>Thời gian</th>
						<th>Địa điểm</th>
						<th>Hành động</th>
					</tr>
				</thead>
				<tbody>
					<?php foreach($event as $value) : ?>
					<tr>
						<td><?php echo $value['title']; ?></td>
						<td class="center"><?php echo date("H:i", strtotime($value['datetime']));?> Ngày <?php echo date("d/m/Y", strtotime($value['datetime'])) ?></td>
						<td class="center"><?php echo $value['place'] ?></td>
						<td class="center">
							<a title="Chỉnh sửa thông tin" class="btn btn-info" href="<?php echo $this->createUrl('event/update',array('id' => $value['id'])); ?>">
								<i class="icon-edit icon-white"></i>
							</a>
							<a title="Xóa sự kiện" class="btn btn-danger" href="<?php echo $this->createUrl('event/delete',array('id' => $value['id'])); ?>">
								<i class="icon-trash icon-white"></i>
							</a>
						</td>
					</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
	</div>
</div>